package com.ftwj.demo.permission.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
*
* <p>Title: OperateBean</p>  
* <p>Description: OperateBean对象</p>
* <p>Copyright: Copyright (c) 2020 </p>  
* <p>Company: 兰州飞天网景信息产业有限公司</p>    
* @author WangSLi
* @date 2020年4月8日 下午3:49:54
* @version V1.0
 */
@TableName("tb_operate")
@ApiModel(value="OperateBean对象", description="")
public class OperateBean implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "操作日志主键")
    @TableId(value = "oper_id", type = IdType.AUTO)
    private Integer operId;

    @ApiModelProperty(value = "访问路径")
    private String url;

    @ApiModelProperty(value = "请求方式")
    private String mothod;

    @ApiModelProperty(value = "操作模块名")
    private String moduleName;

    @ApiModelProperty(value = "客户端ip地址")
    private String ip;

    @ApiModelProperty(value = "请求时长")
    private Long operTime;

    @ApiModelProperty(value = "返回值")
    private String dataMessage;

    @ApiModelProperty(value = "操作用户")
    private Integer createUser;

    @ApiModelProperty(value = "操作时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "数据状态（1：正常；-1：删除）")
    private Integer state;

    public Integer getOperId() {
        return operId;
    }

    public void setOperId(Integer operId) {
        this.operId = operId;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getMothod() {
        return mothod;
    }

    public void setMothod(String mothod) {
        this.mothod = mothod;
    }
    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Long getOperTime() {
		return operTime;
	}

	public void setOperTime(Long operTime) {
		this.operTime = operTime;
	}

	public String getDataMessage() {
        return dataMessage;
    }

    public void setDataMessage(String dataMessage) {
        this.dataMessage = dataMessage;
    }
    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "OperateBean{" +
        "operId=" + operId +
        ", url=" + url +
        ", mothod=" + mothod +
        ", moduleName=" + moduleName +
        ", ip=" + ip +
        ", operTime=" + operTime +
        ", dataMessage=" + dataMessage +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", state=" + state +
        "}";
    }
}
